package com.kxmall.huishou.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.AddGroup;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 回收车辆信息业务对象 hs_recovery_vehicle
 *
 * @author kxmall
 * @date 2023-11-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HsRecoveryVehicleBo extends BaseEntity {

    /**
     * 
     */
//    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 车辆编号
     */
    @NotBlank(message = "车辆编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehicleNo;

    /**
     * 车辆名称
     */
    @NotBlank(message = "车辆名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 车辆描述
     */
    @NotBlank(message = "车辆描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 车辆图片
     */
    @NotBlank(message = "车辆图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgUrl;

    /**
     * 所属回收员
     */
//    @NotNull(message = "所属回收员不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long riderId;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plateNum;

    /**
     * 车架号
     */
    @NotBlank(message = "车架号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vinNo;

    /**
     * 载重，单位吨
     */
    @NotNull(message = "载重，单位吨不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal weightMax;

    /**
     * 经度
     */
//    @NotNull(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal longitude;

    /**
     * 纬度
     */
//    @NotNull(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal latitude;

    /**
     * 0待使用，1运行中
     */
//    @NotNull(message = "0待使用，1运行中不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;


}
